package com.mp3s.interface3;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import lombok.Data;
//stock base define 
@Data
public class BackTestData {
    String name;    //stockId
    String cnName;
    String close;
    String direct;                 //买卖方向，0卖，1买
    String date;

    public String toString(){
        JSONObject json = JSONUtil.parseObj(this, false);
        return json.toStringPretty();//name+":"+open;
    }

    public boolean is_valid(){
        if(name == null || name.length() < 1){
            return false;
        }

        return true;
    }
}
